namespace Cik.Gapi4Net.Domain.Output.BlogSearch
{
    using System;
    using Contract;
    using Core.Json;
    using Newtonsoft.Json;

    [JsonObject]
    public class MainResult : IMainResult
    {
        [JsonProperty("GsearchResultClass")]
        public string GsearchResultClass { get; set; }

        [JsonProperty("author")]
        public string Author { get; set; }

        [JsonProperty("blogUrl")]
        public string BlogUrl { get; set; }

        [JsonProperty("content")]
        public string Content { get; set; }

        [JsonProperty("postUrl")]
        public string PostUrl { get; set; }

        [JsonProperty("publishedDate")]
        [JsonConverter(typeof(Rfc822DateTimeConverter))]
        public DateTime PublishedDate { get; set; }

        [JsonProperty("title")]
        public string Title { get; set; }

        [JsonProperty("titleNoFormatting")]
        public string TitleNoFormatting { get; set; }
    }
}